package items;

import java.util.List;

import model.Bet;
import android.framework.binding.BindableString;
import android.framework.binding.BindableValue;
import android.framework.binding.Item;

public class BetItem extends Item{
	private Bet bet;
	private List<BetSideItem> betSides;
	private BindableValue<BetSideItem> choosenBetSideItem;
	
	public BetItem(Bet bet){
		this.bet = bet;
		choosenBetSideItem = new BindableValue<BetSideItem>(new BetSideItem(bet.getBindableChoosenBetSide()));
	}

	public BindableString getTitle() {
		return bet.getTitle();
	}

	public BindableString getEntityName() {
		return bet.getCreateOnEntity().getEntityName();
	}

	public List<BetSideItem> getBetSides() {
		return betSides;
	}

	public void setBetSides(List<BetSideItem> betSides) {
		this.betSides = betSides;
	}

	public Bet getBet() {
		return bet;
	}

	public void setBet(Bet bet) {
		this.bet = bet;
	}

	public BindableValue<BetSideItem> getChoosenSide() {
		return choosenBetSideItem;
	}
	
}
